AmpProject\AmpWP\MobileRedirection A

Total Complexity 75
Dependencies 8
Dependents 0
Total lines 611
Lines of code 307
Logical lines of code 142
Comment lines 251
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
redirect()
A
45 14 39
add_mobile_version_switcher_link()
A
41 8 61
is_mobile_request()
S
52 7 25
sanitize_script_attributes()
S
58 6 14
set_mobile_redirection_disabled_cookie()
S
48 4 36
add_mobile_version_switcher_styles()
S
59 4 14
register()
S
59 4 13
get_inline_script_tag()
S
64 4 8
filter_amp_to_amp_linking_element_excluded()
S
63 3 11
add_mobile_redirect_script()
S
55 2 19
filter_comment_post_redirect()
S
64 3 10
is_using_client_side_redirection()
S
70 3 6
is_redirection_disabled_via_query_param()
S
77 2 3
filter_amp_to_amp_linking_element_query_vars()
S
71 2 6
sanitize_options()
S
70 2 6
get_mobile_user_agents()
S
63 1 12
is_redirection_disabled_via_cookie()
S
79 1 3
get_current_amp_url()
S
73 1 5
add_mobile_alternative_link()
S
72 1 6
add_noamp_mobile_query_var()
S
79 1 3
filter_default_options()
S
76 1 4
__construct()
S
81 1 3